package reflect;

import reflect.annotations.AutoRunMethod;

import java.lang.reflect.Method;

public class ReflectDemo11 {
    public static void main(String[] args) throws ClassNotFoundException {


        Class cls = Class.forName("reflect.Person");

        Method[] methods = cls.getMethods();
        for (Method method : methods) {
            boolean mark1 = method.isAnnotationPresent(AutoRunMethod.class);
            System.out.println(method.getName() + ":" + mark1);
        }
//        boolean method = cls.isAnnotationPresent(AutoRunMethod.class);
    }
}
